import styled from 'styled-components'

export const HomeWrapper = styled.div`
    overflow:hidden;
    width: 960px;
    margin: 0 auto;
    margin-top: 30px;
`
export const HomeLeft = styled.div`
    float: left;
    padding-left: 15px;
    width: 625px;
`
export const HomeRight = styled.div`
    float: right;
    width: 240px;
`
export const HomeImg = styled.img``
export const TopicWrapper = styled.div`
    padding: 20px 0 10px 0;
    overflow: hidden;
    margin-left: -18px;
`
export const TopicItem = styled.div`
    img {
      float: left;
      display:block;
      height: 32px
    };
    span {
      padding: 0 11px 0 6px;
    };
    margin-left: 18px;
    margin-bottom: 10px;
    float: left;
    height: 32px;
    line-height:32px;
    background-color: #f7f7f7;
    border-radius: 4px;
    font-size: 14px;
    border: 1px solid #dcdcdc
`
export const ListItem = styled.div`
    border-top: 1px solid #bcbcbc;
    padding: 30px 15px 30px 0;
    a {
      font-weight: 700;
      font-size: 25px;
      color: black;
      display: block;
      word-break:keep-all;
      white-space:nowrap;
      overflow:hidden;
      text-overflow:ellipsis; 
    }
    .content{
      padding: 10px 0 0 0;
      font-size: 14px;
      line-height: 24px;
      color: #999;
    }
    .name{
      font-size: 14px;
      line-height: 24px;
      color: #999;
    }
`
export const ListImg = styled.img`
    display: block;
    border-radius: 5px;
    width: 125px;
    height: 100px;
    float: right;
`
export const RecommendList = styled.div`
    height: 270px;
`
export const RecommendItem = styled.div`
    height: 40px;
    margin-bottom: 14px;
    border-radius: 8px;
    background: url(${(p)=>p.imgUrl});
    background-size: contain;
`
export const LoadMore = styled.div`
    width: 100%;
    height: 40px;
    margin: 30px 0;
    line-height: 40px;
    border-radius: 10px;
    background: ${(p)=>p.bgColor};
    color: #fff;
    text-align: center;
`
export const BackToTop = styled.div`
    width: 80px;
    height: 80px;
    line-height: 80px;
    position: fixed;
    right: 50px;
    border: 1px solid #dcdcdc;
    border-radius: 50%;
    top: 600px;
    font-size: 16px;
    color: black;
    text-align: center;
`
export const WritterWrapper = styled.div`
    width: 238px;
    height: 80px;
    border: 1px solid #f0f0f0;
    border-radius: 6px;
    padding: 7px 10px;
    text-align: center;
    img{
      float: left;
      width: 65px;
      height: 65px;
    };
    .title{
      padding: 10px 0 14px 0;
    };
    .des{
      font-size: 12px;
      color: #aaa;
    }
`
export const AuthorWrapper = styled.div`
    width: 240px;
    height: 66px;
    margin-top: 40px;
    border-radius: 6px;
    .top{
      color:#ccc;
      font-size: 14px;
      span{
        display: block;
      }
      .right{
        float: right;
      }
      .left{
        float: left
      }
    }
    
    .main{
      padding-top: 30px;
      span{
        float:right;
        color: #42c02e;
        font-size:13px;
        padding-top: 5px;
      };
      .each{
        height:50px;
        margin-bottom: 15px;
        img{
          float: left;
          border: 1px solid #ccc;
          height:48px;
          width:48px;
          border-radius:50%;
        }
        .name{
          padding-left: 60px;
          padding-top: 5px;
        }
        .desc{
          padding-left: 60px;
          padding-top: 12px;
          font-size: 12px;
          color: #ccc;
        }
      }
    }
    
    .showAll{
      height:34px;
      background: #f7f7f7;
      color: #787878;
      border: 1px solid #ccc;
      border-radius: 5px;
      font-size: 14px;
      text-align: center;
      line-height: 34px;
    }
`

